package com.iu.eblood.serviceImpl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iu.eblood.daoImpl.InformativeMessageDaoImpl;
import com.iu.eblood.model.Informativemessage;
import com.iu.eblood.serviceInterfaces.InformativeMessageService;

@Service("InformativeMessageImpl")
public class InformativeMessageImpl implements InformativeMessageService{

	@Autowired 
	InformativeMessageDaoImpl informativeMessageDaoImpl;

	public List<Informativemessage> getAllActiveMessages() {
		
		return informativeMessageDaoImpl.getAllActiveMessages();
	}
	
	public List<Informativemessage> getAllUrgetMessages()
	{
		return informativeMessageDaoImpl.getAllUrgetMessages();
	}
	
	public List<Informativemessage> getAllGeneralMessages()
	{
		return informativeMessageDaoImpl.getAllGeneralMessages();
	}
}
